﻿using SSLVerifier.API.ViewModels;
using System;
using System.Security;

namespace SSLVerifier.API.ModelObjects {
	public class ProxyObject : ViewModelBase {
		Boolean useProxy, useAuth;
		String server, user;
		Int32 port = 8080;

		public Boolean UseProxy {
			get { return useProxy; }
			set {
				useProxy = value;
				OnPropertyChanged(nameof(UseProxy));
			}
		}

		public String Server {
			get { return server; }
			set {
				server = value;
				OnPropertyChanged(nameof(Server));
			}
		}
		public Int32 Port {
			get { return port; }
			set {
				port = value;
				OnPropertyChanged(nameof(Port));
			}
		}
		public Boolean UseAuthentication {
			get { return useAuth; }
			set {
				useAuth = value;
				OnPropertyChanged(nameof(UseAuthentication));
			}
		}
		public String UserName {
			get { return user; }
			set {
				user = value;
				OnPropertyChanged(nameof(UserName));
			}
		}
		public SecureString SecurePassword { get; set; }
	}
}
